package com.song.tools.mvc.response;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * 删除响应体
 * </p>
 *
 * @author song tools
 * @since 2024-06-21
 */
@Schema(title = "DeleteResponse", description = "删除响应体")
@Data
public class DeleteResponse implements Serializable {

    @Serial
    private static final long serialVersionUID = 6001386140272583366L;

    /**
     * 删除成功
     */
    public static final Integer DELETED_SUCCESS = 1;

    /**
     * 删除失败
     */
    public static final Integer DELETED_FAIL = 0;

    /**
     * 删除结果
     */
    @Schema(title = "deleted", description = "删除结果：1标识成功，0标识失败")
    private Integer deleted;
}
